package edu.cuit.wedding.portal.controller;

import edu.cuit.wedding.commons.annotation.Controller;
import edu.cuit.wedding.commons.annotation.RequestMapping;
import edu.cuit.wedding.commons.annotation.ResponseBody;
import edu.cuit.wedding.entity.dto.ResponseResult;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * 用户模块相关控制器API请求接口
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/register")
    @ResponseBody
    public ResponseResult register(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
        return ResponseResult.ok();
    }

    @RequestMapping("/login")
    @ResponseBody
    public ResponseResult login(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        return ResponseResult.ok();
    }

    @RequestMapping("/logout")
    @ResponseBody
    public ResponseResult logout(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
        return ResponseResult.ok();
    }
}
